package com.empire.module.member.controller.admin.mappolygon.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

// 顶点VO
@Data
@Schema(description = "多边形顶点VO")
public class MapPolygonPointVO {
    @Schema(description = "顶点ID（更新时必填）")
    private Long id;

    @Schema(description = "环索引（0=外环，1+内环）", defaultValue = "0")
    private Integer ringIndex = 0;

    @Schema(description = "经度", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "经度不能为空")
    private Double lng;

    @Schema(description = "纬度", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "纬度不能为空")
    private Double lat;

    @Schema(description = "顶点顺序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "顶点顺序不能为空")
    private Integer pointIndex;
}
